package com.lhg.pattern.creational.factory;

public class ShapeFactory {
    public Shape getShape(String shapeType){
        if ("RECTANGLE".equalsIgnoreCase(shapeType)){
            return new Rectangle();
        }else if("SQUARE".equalsIgnoreCase(shapeType)){
            return new Square();
        }else if ("CIRCLE".equalsIgnoreCase(shapeType)){
            return new Circle();
        }
        return null;
    }
}
